﻿
using System;
using System.Data;
using System.Data.SqlClient;
namespace Model
{
	
	/// <summary>	 
	/// 邮件系统设定
	/// </summary>
	public class DbEmail
	{ 
		#region DbEmail
		/// <summary>
		/// 
		/// </summary>
		public DbEmail()
		{
		}
		/// <summary>	 
		/// 
		/// </summary>
		public DbEmail(Int32 eId)
		{
			this.eId = eId;
		
		}
		/// <summary>	 
		/// 
		/// </summary>		
		public DbEmail(DataRow dr)
		{
			int.TryParse(Convert.ToString(dr["eId"]),out eId);
			this.eMail = Convert.ToString(dr["eMail"]);
			this.ePwd = Convert.ToString(dr["ePwd"]);
			this.eSmtp = Convert.ToString(dr["eSmtp"]);
			int.TryParse(Convert.ToString(dr["ePort"]),out ePort);
			this.eShowEmail = Convert.ToString(dr["eShowEmail"]);
			this.eShowUser = Convert.ToString(dr["eShowUser"]);
			this.eStatus = Convert.ToInt16(dr["eStatus"]);
			this.eRegisterMail = Convert.ToString(dr["eRegisterMail"]);
			this.eOrderMail = Convert.ToString(dr["eOrderMail"]);
			
		}
		#endregion
		
		
		#region EId
		private Int32 eId;
		/// <summary>	 
		/// 
		/// AutoInc
		/// PK
		/// </summary>
		public Int32 EId
		{
			get{ return eId; }
			set{ eId= value; }
		}
		#endregion
		
		#region EMail
		private System.String eMail;
		/// <summary>	 
		/// SMTP邮件帐户
		/// </summary>
		public System.String EMail
		{
			get{ return eMail; }
			set{ eMail= value; }
		}
		#endregion
		
		#region EPwd
		private System.String ePwd;
		/// <summary>	 
		/// 邮件帐户密码
		/// </summary>
		public System.String EPwd
		{
			get{ return ePwd; }
			set{ ePwd= value; }
		}
		#endregion
		
		#region ESmtp
		private System.String eSmtp;
		/// <summary>	 
		/// 
		/// </summary>
		public System.String ESmtp
		{
			get{ return eSmtp; }
			set{ eSmtp= value; }
		}
		#endregion
		
		#region EPort
		private Int32 ePort;
		/// <summary>	 
		/// 端口号
		/// </summary>
		public Int32 EPort
		{
			get{ return ePort; }
			set{ ePort= value; }
		}
		#endregion
		
		#region EShowEmail
		private System.String eShowEmail;
		/// <summary>	 
		/// 显示发件邮件
		/// </summary>
		public System.String EShowEmail
		{
			get{ return eShowEmail; }
			set{ eShowEmail= value; }
		}
		#endregion
		
		#region EShowUser
		private System.String eShowUser;
		/// <summary>	 
		/// 显示发件人名称
		/// </summary>
		public System.String EShowUser
		{
			get{ return eShowUser; }
			set{ eShowUser= value; }
		}
		#endregion
		
		#region EStatus
		private Int16 eStatus;
		/// <summary>	 
		/// 状态
		/// </summary>
		public Int16 EStatus
		{
			get{ return eStatus; }
			set{ eStatus= value; }
		}
		#endregion
		
		#region ERegisterMail
		private System.String eRegisterMail;
		/// <summary>	 
		/// 注册成功后邮件模板
		/// </summary>
		public System.String ERegisterMail
		{
			get{ return eRegisterMail; }
			set{ eRegisterMail= value; }
		}
		#endregion
		
		#region EOrderMail
		private System.String eOrderMail;
		/// <summary>	 
		/// 下单成功后邮件模块
		/// </summary>
		public System.String EOrderMail
		{
			get{ return eOrderMail; }
			set{ eOrderMail= value; }
		}
		#endregion

	}
}
